from app import db, Usesr, Category, Post


def add ():
    user=Usesr('小李','adad@a')
    db.session.add(user)
    db.session.commit()



if __name__ == '__main__':
    py = Category('Python')
    p=Post('Hello Python!', 'Python is pretty cool', py)
    db.session.add(py)
    db.session.add(p)
    db.session.commit()
